clear;

hi=[24.20 24.07 24.04 23.87 23.67 23.59 23.80 23.80 24.30 24.15 24.05 24.06 23.88 25.14 25.20 25.07 25.22 25.37 25.36 25.26]';
lo=[23.85 23.72 23.64 23.37 23.46 23.18 23.40 23.57 24.05 23.77 23.60 23.84 23.64 23.94 24.74 24.77 24.90 24.93 24.96 24.93]';
cl=[23.89 23.95 23.67 23.78 23.50 23.32 23.75 23.79 24.14 23.81 23.78 23.86 23.70 24.96 24.88 24.96 25.18 25.07 25.27 25.00]';

CCI=CCI(hi(end-20+1:end), lo(end-20+1:end), cl(end-20+1:end));
assert(approxeq(CCI, 102.19, 0.01));


